package com.seari.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.seari.bean.LineInfo;
import com.seari.bean.StationInfo;
import com.seari.bean.StationPosition;
import com.seari.mapper.StationMapper;
import com.seari.service.StationService;

@Service("stationService")
public class StationServiceImpl implements StationService {
	
	@Autowired
	private StationMapper stationMapper;
	
	@DS("slave_1")
	public List<StationPosition> getStationPositionList(){
		
		return stationMapper.getStationPositionList();
	}
	
	@DS("slave_2")
	public List<StationInfo> getStationInfoList(){
		
		return stationMapper.getStationInfoList();
	}

	@Override
	@DS("slave_1")
	public List<StationPosition> getRawStationPosition()
	{
		// TODO Auto-generated method stub
		return stationMapper.getRawStationPosition();
	}
}
